package edu.sctu.zhengsenwen.month201505.day20150524;

import java.util.List;
import java.util.ArrayList;
/**
 * Created by user15 on 2015/5/24.
 */
public class StudentInformation {

    private List<Student> list1 = new ArrayList<>();
    private List<Student> list2 = new ArrayList<>();
    private List<Student> list3 = new ArrayList<>();


    public StudentInformation(){

        List course = new TextCourse().TextCourse();

        for(int i=0;i<3;i++){

            List courseList = new ArrayList<>();
            courseList.add(course.get((int)(Math.random()*7)));
            courseList.add(course.get((int)(Math.random()*7)));
            Student student = new Student(101014+i,"郑森文"+i,19,"女","成都",55+i,courseList);
            list1.add(student);
        }


        for(int i=0;i<3;i++){
            List courseList = new ArrayList<>();
            courseList.add(course.get((int)(Math.random()*7)));
            courseList.add(course.get((int)(Math.random()*7)));
            Student stdent = new Student(101022+i,"路明非"+i,20,"男","卡塞尔学院",66+i,courseList);
            list2.add(stdent);
        }

        for (int i = 0; i < 5; i++) {

            List corseList = new ArrayList<>();
            corseList.add(course.get((int)(Math.random()*7)));
            corseList.add(course.get((int)(Math.random()*7)));
            Student student = new Student(101044+i,"楚子航"+i,22,"男","上海",90+i,corseList);
            list3.add(student);
        }

    }

    public List<Student> get1(){
        return list1;
    }
    public List<Student> get2(){
       return list2;
   }
    public List<Student> get3(){
        return list3;
    }
}
